package com.iotechn.unimall.admin.api.biaozhun;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.ShopBiaozhunDO;
import com.iotechn.unimall.data.model.Page;

import java.util.List;

/**
 * 文章
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-04-21 13:35:44
 */
@HttpOpenApi(group = "admin.biaozhun", description = "")
public interface AdminBiaozhunService {

    @HttpMethod(description = "列表", permission = "admin:shopBiaozhun:list", permissionParentName = "工程管理", permissionName = "工程管理")
    public Page<ShopBiaozhunDO> list(
            @HttpParam(name = "shopId", type = HttpParamType.COMMON, description = "搜索分类") Long shopId,
            @HttpParam(name = "jiedianId", type = HttpParamType.COMMON, description = "搜索分类") Long jiedianId,
            @HttpParam(name = "title", type = HttpParamType.COMMON, description = "搜索标题") String title,
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "列表")
    public List<ShopBiaozhunDO> getBiaozhunByShopId(
            @HttpParam(name = "shopId", type = HttpParamType.COMMON, description = "页码") Long shopId,
            @HttpParam(name = "jiedianId", type = HttpParamType.COMMON, description = "页长度") Long jiedianId) throws ServiceException;
    @HttpMethod(description = "列表")
    public List<ShopBiaozhunDO> getBiaozhunByPId(
            @HttpParam(name = "shopId", type = HttpParamType.COMMON, description = "页码") Long shopId,
            @HttpParam(name = "gongchengPxuhao", type = HttpParamType.COMMON, description = "") String gongchengPxuhao);


    @HttpMethod(description = "创建", permission = "admin:shopBiaozhun:create", permissionParentName = "工程管理", permissionName = "工程管理")
    public ShopBiaozhunDO create(
            @NotNull @HttpParam(name = "shopBiaozhunDO", type = HttpParamType.COMMON, description = "") ShopBiaozhunDO shopBiaozhunDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "修改", permission = "admin:shopBiaozhun:update", permissionParentName = "工程管理", permissionName = "工程管理")
    public String update(
            @NotNull @HttpParam(name = "shopBiaozhunDO", type = HttpParamType.COMMON, description = "") ShopBiaozhunDO shopBiaozhunDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "删除", permission = "admin:shopBiaozhun:delete", permissionParentName = "工程管理", permissionName = "工程管理")
    public String delete(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "删除Id") Long id,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "批量删除", permission = "admin:shopBiaozhun:batchdelete", permissionParentName = "工程管理", permissionName = "工程管理")
    public String batchDelete(
            @NotNull @HttpParam(name = "ids", type = HttpParamType.COMMON, description = "商品Id") String ids,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员Id") Long adminId) throws ServiceException;


    @HttpMethod(description = "详情", permission = "admin:shopBiaozhun:detail", permissionParentName = "工程管理", permissionName = "工程管理")
    public ShopBiaozhunDO detail(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "Id") Long id,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "激活冻结", permission = "admin:shopBiaozhun:update", permissionParentName = "工程管理", permissionName = "工程管理")
    public Boolean updateStatus(
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId,
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "用户信息") Long id,
            @NotNull @HttpParam(name = "status", type = HttpParamType.COMMON, description = "用户信息") Integer status) throws ServiceException;

}

